clean up gui main and fix a png. (#313)
authortsteven4 <tsteven4@users.noreply.github.com>
Sat, 9 Mar 2019 16:44:04 +0000 (09:44 -0700)
committerGitHub <noreply@github.com>
Sat, 9 Mar 2019 16:44:04 +0000 (09:44 -0700)
commit6cf0660e74de8ae1462e5aa355be864553f01109
tree0294b0adf25efc4cb79dbcf531d6dcec538d6a94
parent17da90b1a3e082f726b705da6cb7010fcb2d4ac4
clean up gui main and fix a png. (#313)

* clean up gui main and fix a png.

- fix libpng warning: iCCP: known incorrect sRGB profile
  issue with runit.png with pngcrush.

- fix includes for gui/main.cc, including removal of
  CoreFoundation.h
- use QApplication static methods instead of going directly
  to the underlying QCoreApplication static methods.

 - no path setting in GUI, instead pass the full path to gpsbabel when using QProcess::start.

in formatload.cc xlt() use qt methods to get a char* instead of
resorting to stdlib.  At this point Qt assumes all translate strings
are utf8.  However, the formatload xlt intent doesn't work because
1) MainWindow::LoadLanguage hasn't been called when
   MainWindow::loadFormats is called.
2) the translations don't exist for the format bits from gpsbabel
   that fromatload tries to translate.  I think this was the intent
   of the gpsbabel_*.ts files which are very out of date and no
   longer distributed.
gui/formatload.cc
gui/formatload.h
gui/images/runit.png
gui/main.cc
gui/mainwindow.cc
gui/mainwindow.h